<?php
$mod_right_recomm_today = MBGlobal::getAdminRecomm()->getMod(7);
$right_recomm_today_arr = MBGlobal::getAdminRecomm()->showRightRecommToday(0, $mod_right_recomm_today['list'][0]['p2'], 1);
$right_recomm_today_arr = formatUserList($right_recomm_today_arr);

if($mod_right_recomm_today['list'][0]['status']){
?>
<table width="288" border="0" cellspacing="0" cellpadding="0">
	<tr>
		<td height="25" colspan="3">&nbsp;</td>
	</tr>
	<tr>
		<td width="7">&nbsp;</td>
		<td>
			<table width="272" height="43" border="0" cellpadding="0" cellspacing="0" background="style/images/login/rightsidebar.gif">
				<tr>
					<td width="45">&nbsp;</td>
					<td width="185" align="center" valign="baseline" class="f18"><?php echo $mod_right_recomm_today['list'][0]['name'];?></td>
					<td width="42" align="left"><a href="#" target="_blank" class="whter"></a></td>
				</tr>
			</table>
		</td>
		<td width="7">&nbsp;</td>
	</tr>
	<tr>
		<td>&nbsp;</td>
		<td align="center" valign="top">
			<table width="272" cellspacing="0" cellpadding="0">
				<?php
				for($i=0; $i<count($right_recomm_today_arr['list']); $i++){
					if($i%3==0){
						if($i!=0){
							?>
							</tr>
							<?php
						}
						?>
						<tr>
							<td height="15" colspan="3">&nbsp;</td>
						</tr>
						<tr align="center">
						<?php
					}
					?>
					<td>
						<table cellspacing="0" cellpadding="0">
							<tr>
								<td align="center" valign="middle">
									<table border="0" cellpadding="0" cellspacing="2" class="bk1">
										<tr>
											<td><a href="index.php?m=guest&u=<?php echo $right_recomm_today_arr['list'][$i]['uname']?>" target="_blank"><img src="<?php echo $right_recomm_today_arr['list'][$i]['head']?>" width="50" height="50" border="0" /></a></td>
										</tr>
									</table>
								</td>
							</tr>
							<tr>
								<td height="24" align="center"><a href="index.php?m=guest&u=<?php echo $right_recomm_today_arr['list'][$i]['uname']?>" target="_blank" class="blue1"><?php echo $right_recomm_today_arr['list'][$i]['nick']?></a></td>
							</tr>
						</table>
					</td>
				<?php
				}
				if($i%3!=0){
					while($i%3!=0){
						?>
						<td></td>
						<?php
						$i++;
					}
				}
				?>
				</tr>
			</table>
		</td>
		<td>&nbsp;</td>
	</tr>
</table>
<?php
}
?>